<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue createElement</title>
    <script src="../../vue.js"></script>
</head>
<body>
   <div id="app">
        <my-component>
            <template v-slot:footer>
                <div style="background-color: #eee;height: 50px;">this is footer bar</div>
            </template>
            <template v-slot:header>
                <div style="background-color: #ccc;height: 50px;">this is navigate bar</div>
            </template>
            <template v-slot:content>
                <div style="background-color: #ddd;height: 50px;">this is content bar</div>
            </template>
        </my-component>
   </div> 
   <script>
       Vue.component('my-component',{
           render (createElement){
               return createElement('div',[
                   createElement('content',this.$slots.content),
                   createElement('footer',this.$slots.footer),
                   createElement('header',this.$slots.header),
                   createElement('footer',this.$slots.footer),
                   createElement('footer',this.$slots.footer),
            ])
           }
       })
       var vm=new Vue({
           el:'#app'
       })

   </script>
</body>
</html>